package com.csmht.tododemo.mapper;

import com.csmht.tododemo.annotation.AutoFill;
import com.csmht.tododemo.pojo.dto.CommentPageDTO;
import com.csmht.tododemo.pojo.entity.Comment;
import com.csmht.tododemo.pojo.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    @AutoFill(OperationType.ONE)
    void insert(Comment comment);

    List<Comment> selectMainList(CommentPageDTO commentPageDTO);

    List<Comment> selectSmallList(Long id, CommentPageDTO page);
}
